<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>线路管理</title>
		<link href="css/plugins/jsTree/style.min.css" rel="stylesheet">
		<link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
		<link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
		<link href="css/animate.css" rel="stylesheet">
		<link href="css/style.css?v=4.1.0" rel="stylesheet">
		<link href="css/plugins/jqgrid/ui.jqgrid.css?0820" rel="stylesheet">
	</head>

	<body class="badge-white" style="padding: 15px;">
		<div class="row">
			<!-- 左侧树状菜单 -->
			<div class="ibox-content col-xs-2 col-sm-2" style="border-top-style: hidden; border-right: 1px solid #0B91EA;">
				<div id="jstree1">
					<ul>
						<li class="jstree-open">国内
							<ul>
								<li>北京
									<ul>
										<li data-jstree='{"type":"line"}'>线路1</li>
										<li data-jstree='{"type":"line"}'>线路2</li>
										<li data-jstree='{"type":"line"}'>线路3</li>
									</ul>
								</li>
								<li>上海
									<ul>
										<li data-jstree='{"type":"line"}'>线路1</li>
										<li data-jstree='{"type":"line"}'>线路2</li>
										<li data-jstree='{"type":"line"}'>线路3</li>
									</ul>
								</li>
								<li>四川
									<ul>
										<li data-jstree='{"type":"line"}'>线路1</li>
										<li data-jstree='{"type":"line"}'>线路2</li>
										<li data-jstree='{"type":"line"}'>线路3</li>
										<li data-jstree='{"type":"line"}'>线路4</li>
									</ul>
								</li>
								<li class="jstree-open">云南
									<ul>
										<li data-jstree='{"type":"line"}'>线路1</li>
										<li data-jstree='{"type":"line"}'>线路2</li>
										<li data-jstree='{"type":"line"}'>线路3</li>
									</ul>
								</li>
								<li class="jstree-open">湖北三日游
									<ul>
										<li data-jstree='{"type":"line"}'>线路1</li>
										<li data-jstree='{"type":"line"}'>线路2</li>
										<li data-jstree='{"type":"line"}'>线路3</li>
									</ul>
								</li>
								<li data-jstree='{"type":"line"}'>深圳一日游</li>
								<li data-jstree='{"type":"line"}'>一天游</li>
								<li data-jstree='{"type":"line"}'>武汉江夏一日游</li>
								<li data-jstree='{"type":"line"}'>西安</li>
							</ul>
						</li>
						<li class="jstree-open">国际
							<ul>
								<li>东南亚
									<ul>
										<li data-jstree='{"type":"line"}'>线路1</li>
										<li data-jstree='{"type":"line"}'>线路2</li>
										<li data-jstree='{"type":"line"}'>线路3</li>
									</ul>
								</li>
								<li>海岛
									<ul>
										<li data-jstree='{"type":"line"}'>线路1</li>
										<li data-jstree='{"type":"line"}'>线路2</li>
										<li data-jstree='{"type":"line"}'>线路3</li>
									</ul>
								</li>
								<li>国际游
									<ul>
										<li data-jstree='{"type":"line"}'>线路1</li>
										<li data-jstree='{"type":"line"}'>线路2</li>
										<li data-jstree='{"type":"line"}'>线路3</li>
										<li data-jstree='{"type":"line"}'>线路4</li>
									</ul>
								</li>
								<li class="jstree-open">新马泰
									<ul>
										<li data-jstree='{"type":"line"}'>线路1</li>
										<li data-jstree='{"type":"line"}'>线路2</li>
										<li data-jstree='{"type":"line"}'>线路3</li>
									</ul>
								</li>
								<li class="jstree-open">欧洲
									<ul>
										<li data-jstree='{"type":"line"}'>线路1</li>
										<li data-jstree='{"type":"line"}'>线路2</li>
										<li data-jstree='{"type":"line"}'>线路3</li>
									</ul>
								</li>
								<li data-jstree='{"type":"line"}'>泰系列</li>
								<li data-jstree='{"type":"line"}'>巴厘岛</li>
								<li data-jstree='{"type":"line"}'>中东游</li>
							</ul>
						</li>
					</ul>
				</div>

			</div>
			<!-- 右侧表格内容 -->
			<div class="col-xs-10 col-sm-10 badge-white">
				<ul class="operation-bar">
					<li>
						<a href="">新增</a>
					</li>
					<li>
						<a href="">编辑</a>
					</li>
					<li>
						<a href="">复制</a>
					</li>
					<li>
						<a href="">删除</a>
					</li>
					<li>
						<a href="">开团</a>
					</li>
					<li>
						<a href="">回收站</a>
					</li>
					<li>
						<a href="">批量操作</a>
						<ul style="display: none;">
							<li>
								<a href="">批量删除</a>
							</li>
							<li>
								<a href="">线路类别</a>
							</li>
							<li>
								<a href="">产品类别</a>
							</li>
							<li>
								<a href="">线路标签</a>
							</li>
							<li>
								<a href="">其他属性</a>
							</li>
						</ul>
					</li>
				</ul>
				<div class="ibox-content" style="width: 100%; height: 100%; margin-top: 30px;">
					<div class="jqGrid_wrapper">
						<table id="table_list_1"></table>
						<div id="pager_list_1"></div>
					</div>
				</div>
			</div>
		</div>

		<!-- 全局js -->
		<script src="js/jquery.min.js?v=2.1.4"></script>
		<script src="js/bootstrap.min.js?v=3.3.6"></script>
		<script src="js/plugins/layer/layer.min.js"></script>

		<!-- 自定义js -->
		<script src="js/content.js?v=1.0.0"></script>

		<!-- 欢迎信息 -->
		<script src="js/welcome.js"></script>

		<!-- jsTree plugin javascript -->
		<script src="js/plugins/jsTree/jstree.min.js"></script>

		<!-- Peity -->
		<script src="js/plugins/peity/jquery.peity.min.js"></script>

		<!-- jqGrid -->
		<script src="js/plugins/jqgrid/i18n/grid.locale-cn.js?0820"></script>
		<script src="js/plugins/jqgrid/jquery.jqGrid.min.js?0820"></script>

		<!-- Page-Level Scripts -->

		<style>
			.jstree-open>.jstree-anchor>.fa-folder:before {
				content: "\f07c";
			}
			
			.jstree-default .jstree-icon.none {
				width: 0;
			}
		</style>

		<script>
			$(document).ready(function() {

				$('#jstree1').jstree({
					'core': {
						'check_callback': true
					},
					'plugins': ['types', 'dnd'],
					'types': {
						'default': {
							'icon': 'fa fa-folder'
						},
						'line': {
							'icon': 'fa fa-plane'
						}

					}
				});

				$('.operation-bar').find('li').hover(function() {
					$(this).find('ul').slideDown();
				}, function() {
					$(this).find('ul').slideUp();
				})

				$.jgrid.defaults.styleUI = 'Bootstrap';
				// Examle data for jqGrid
				var mydata = [{
						id: "1",
						invdate: "2010-05-24",
						name: "test",
						note: "note",
						tax: "10.00",
						total: "2111.00"
					},
					{
						id: "2",
						invdate: "2010-05-25",
						name: "test2",
						note: "note2",
						tax: "20.00",
						total: "320.00"
					},
					{
						id: "3",
						invdate: "2007-09-01",
						name: "test3",
						note: "note3",
						tax: "30.00",
						total: "430.00"
					},
					{
						id: "4",
						invdate: "2007-10-04",
						name: "test",
						note: "note",
						tax: "10.00",
						total: "210.00"
					},
					{
						id: "5",
						invdate: "2007-10-05",
						name: "test2",
						note: "note2",
						tax: "20.00",
						total: "320.00"
					},
					{
						id: "6",
						invdate: "2007-09-06",
						name: "test3",
						note: "note3",
						tax: "30.00",
						total: "430.00"
					},
					{
						id: "7",
						invdate: "2007-10-04",
						name: "test",
						note: "note",
						tax: "10.00",
						total: "210.00"
					},
					{
						id: "8",
						invdate: "2007-10-03",
						name: "test2",
						note: "note2",
						amount: "300.00",
						tax: "21.00",
						total: "320.00"
					},
					{
						id: "9",
						invdate: "2007-09-01",
						name: "test3",
						note: "note3",
						amount: "400.00",
						tax: "30.00",
						total: "430.00"
					},
					{
						id: "11",
						invdate: "2007-10-01",
						name: "test",
						note: "note",
						amount: "200.00",
						tax: "10.00",
						total: "210.00"
					},
					{
						id: "12",
						invdate: "2007-10-02",
						name: "test2",
						note: "note2",
						amount: "300.00",
						tax: "20.00",
						total: "320.00"
					},
					{
						id: "13",
						invdate: "2007-09-01",
						name: "test3",
						note: "note3",
						amount: "400.00",
						tax: "30.00",
						total: "430.00"
					},
					{
						id: "14",
						invdate: "2007-10-04",
						name: "test",
						note: "note",
						amount: "200.00",
						tax: "10.00",
						total: "210.00"
					},
					{
						id: "15",
						invdate: "2007-10-05",
						name: "test2",
						note: "note2",
						amount: "300.00",
						tax: "20.00",
						total: "320.00"
					},
					{
						id: "16",
						invdate: "2007-09-06",
						name: "test3",
						note: "note3",
						amount: "400.00",
						tax: "30.00",
						total: "430.00"
					},
					{
						id: "17",
						invdate: "2007-10-04",
						name: "test",
						note: "note",
						amount: "200.00",
						tax: "10.00",
						total: "210.00"
					},
					{
						id: "18",
						invdate: "2007-10-03",
						name: "test2",
						note: "note2",
						amount: "300.00",
						tax: "20.00",
						total: "320.00"
					},
					{
						id: "19",
						invdate: "2007-09-01",
						name: "test3",
						note: "note3",
						amount: "400.00",
						tax: "30.00",
						total: "430.00"
					},
					{
						id: "21",
						invdate: "2007-10-01",
						name: "test",
						note: "note",
						amount: "200.00",
						tax: "10.00",
						total: "210.00"
					},
					{
						id: "22",
						invdate: "2007-10-02",
						name: "test2",
						note: "note2",
						amount: "300.00",
						tax: "20.00",
						total: "320.00"
					},
					{
						id: "23",
						invdate: "2007-09-01",
						name: "test3",
						note: "note3",
						amount: "400.00",
						tax: "30.00",
						total: "430.00"
					},
					{
						id: "24",
						invdate: "2007-10-04",
						name: "test",
						note: "note",
						amount: "200.00",
						tax: "10.00",
						total: "210.00"
					},
					{
						id: "25",
						invdate: "2007-10-05",
						name: "test2",
						note: "note2",
						amount: "300.00",
						tax: "20.00",
						total: "320.00"
					},
					{
						id: "26",
						invdate: "2007-09-06",
						name: "test3",
						note: "note3",
						amount: "400.00",
						tax: "30.00",
						total: "430.00"
					},
					{
						id: "27",
						invdate: "2007-10-04",
						name: "test",
						note: "note",
						amount: "200.00",
						tax: "10.00",
						total: "210.00"
					},
					{
						id: "28",
						invdate: "2007-10-03",
						name: "test2",
						note: "note2",
						amount: "300.00",
						tax: "20.00",
						total: "320.00"
					},
					{
						id: "29",
						invdate: "2007-09-01",
						name: "test3",
						note: "note3",
						amount: "400.00",
						tax: "30.00",
						total: "430.00"
					}
				];

				// Configuration for jqGrid Example 1
				$("#table_list_1").jqGrid({
					data: mydata,
					datatype: "local",
					autowidth: true,
					height: 600,
					shrinkToFit: true,
					multiselect: true,
					rowNum: 30,
					rowList: [10, 20, 30],
					colNames: ['序号', '日期', '客户', '金额', '运费', '总额', '备注'],
					colModel: [{
							name: 'id',
							index: 'id',
							sorttype: "int"
						},
						{
							name: 'invdate',
							index: 'invdate',
							sorttype: "date",
							formatter: "date"
						},
						{
							name: 'name',
							index: 'name'
						},
						{
							name: 'amount',
							index: 'amount',
							align: "right",
							sorttype: "float",
							formatter: "number"
						},
						{
							name: 'tax',
							index: 'tax',
							align: "right",
							sorttype: "float"
						},
						{
							name: 'total',
							index: 'total',
							align: "right",
							sorttype: "float"
						},
						{
							name: 'note',
							index: 'note',
							sortable: false
						}
					],
					pager: "#pager_list_1",
					viewrecords: true,
					hidegrid: false
				});

				// Add responsive to jqGrid
				$(window).bind('resize', function() {
					var width = $('.jqGrid_wrapper').width();
					$('#table_list_1').setGridWidth(width);
				});

			});
		</script>
	</body>

</html>